package com.hyf.meterialdesign.activity;

import android.os.Build;
import android.os.Bundle;
import android.transition.Fade;

import com.hyf.meterialdesign.BaseActivity;
import com.hyf.meterialdesign.R;

public class FadeAnimationActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fade);
    }

    @Override
    protected void initView() {

    }

    @Override
    protected void initData() {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            getWindow().setEnterTransition(new Fade().setDuration(2000));
            getWindow().setExitTransition(new Fade().setDuration(2000));
        }

    }

    @Override
    protected void initListener() {

    }
}
